$(function(){
	layui.use(['element', 'layer'], function(){
		  var element = layui.element;
		  var layer = layui.layer;
		});
	
	layui.use('element', function(){
		  var element = layui.element;
		  
		  //…
		});
})